package cn.com.cifi.mars.entity.common;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 用户角色
 * </p>
 *
 * @author yyd
 * @since 2019-09-18
 */
@Data
@TableName("t_sys_user_role")
public class SysUserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;
    
    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 创建时间
     */
    private LocalDateTime created;
    
    /**
     * 角色id
     */
    @TableField("role_id")
    private String roleId;

    /**
     * 状态
     */
    private String status;

    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;


    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
    public LocalDateTime getCreated() {
        return created;
    }

    public void setCreated(LocalDateTime created) {
        this.created = created;
    }
    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    

    public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Override
    public String toString() {
        return "SysUserRole{" +
        "id=" + id +
        ", createBy=" + createBy +
        ", created=" + created +
        ", roleId=" + roleId +
        ", status=" + status +
        ", userId=" + userId +
        "}";
    }
}
